/**
 * 提供gpio，spi相关的操作接口
 */
#ifndef _RC522_INTERFACE_H_
#define _RC522_INTERFACE_H_

#include <stdint.h>

int rc522_interface_init(void);
int rc522_interface_free(void);
int rc522_set_rst(uint8_t level);
int rc522_spi_set_cs(uint8_t level);
int rc522_spi_write(const uint8_t *data, uint32_t data_len);
int rc522_spi_read(uint8_t *data, uint32_t data_len);
void delay_ms(uint8_t time);

#endif
